x86/AMD: fold redundant parameters of cpu_has_amd_erratum()
authorJan Beulich <jbeulich@suse.com>
Mon, 19 Dec 2011 08:37:52 +0000 (09:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Dec 2011 08:37:52 +0000 (09:37 +0100)
commit0772c12142d609624a958db9b2012d3617dd7c08
tree44c0754d03e78aaf89ea42383b4f47694b0cb48a
parent183048e2da7125ec4f1e9e00d94c75b03804c3e9
x86/AMD: fold redundant parameters of cpu_has_amd_erratum()

The boolean 'osvw' indicator and 'osvw_id' can be folded - the function
can as well distinguish the non-OSVW case by checking for a negative
'osvw_id'. That way the whole variable argument list processing is only
needed on the legacy code path.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
Acked-by: Wei Huang <wei.huang2@amd.com>
xen/arch/x86/cpu/amd.c
xen/include/asm-x86/amd.h